import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'package:get/get.dart';
import '../../style/widget_style.dart';
import '../controller/RecordTranscriptViewAiController.dart';

class Record2scriptQandAai extends GetView<RecordTranscriptViewAiController> {
  const Record2scriptQandAai({super.key});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        padding: EdgeInsets.all(18.w),
        child: Column(
          children: [
            Expanded(child: ListView(
              controller: controller.scrollController,
              children: [
                Column(
                  children: [
                    Text('您可以咨询关于此对话的任何问题.',style: AppStyleThemeData.PAGE_TITLE,),
                    Text('从智译AI问答中获取答案',style: AppStyleThemeData.HINT_TEXT_STYLE,),
                    SizedBox(height: 20.h,),
                    Container(
                      padding: EdgeInsets.all(16.w),
                      decoration: BoxDecoration(
                          shape: BoxShape.rectangle,
                          borderRadius: BorderRadius.all(Radius.circular(20)),
                          color: Colors.white
                      ),
                      child: Row(
                        children: [
                          Image.asset('assets/images/icon_ai_page_question_flag.png'),
                          SizedBox(width: 12.w,),
                          Text('此次会议做出了什么决定?',style: AppStyleThemeData.normal_bold,)
                        ],
                      ),
                    ),
                    SizedBox(height: 16,),
                    Container(
                      padding: EdgeInsets.all(16.w),
                      decoration: BoxDecoration(
                          shape: BoxShape.rectangle,
                          borderRadius: BorderRadius.all(Radius.circular(20)),
                          color: Colors.white
                      ),
                      child: Row(
                        children: [
                          Image.asset('assets/images/icon_ai_page_question_flag.png'),
                          SizedBox(width: 12.w,),
                          Text('此次会议有那些代办?',style: AppStyleThemeData.normal_bold,)
                        ],
                      ),
                    ),
                    SizedBox(height: 16,),
                    Container(
                      padding: EdgeInsets.all(16.w),
                      decoration: BoxDecoration(
                          shape: BoxShape.rectangle,
                          borderRadius: BorderRadius.all(Radius.circular(20)),
                          color: Colors.white
                      ),
                      child: Row(
                        children: [
                          Image.asset('assets/images/icon_ai_page_question_flag.png'),
                          SizedBox(width: 12.w,),
                          Text('这次会议提出的问题和答案是什么?',style: AppStyleThemeData.normal_bold,)
                        ],
                      ),
                    ),
                    SizedBox(height: 16,),
                  ],
                ),



              ],
            ),flex: 1,),
            Container(
              width:  Get.width,
              decoration: BoxDecoration(
                  shape: BoxShape.rectangle,
                  borderRadius: BorderRadius.all(Radius.circular(30)),
                  color: Colors.white
              ),
              child: TextField(
                decoration: InputDecoration(
                    hintText: '发送您的问题',
                    hintStyle: AppStyleThemeData.HINT_TEXT_STYLE_small,
                    prefixIcon: Row(
                      children: [
                        SizedBox(width: 10.w,),
                        Image.asset('assets/images/icon_page_small_ai.png',width: 24.w,height: 24.h,)
                      ],
                    ),
                    // prefixIconConstraints: BoxConstraints(maxWidth: 24.w,maxHeight: 24.h),
                    suffixIcon: Row(
                      mainAxisAlignment: MainAxisAlignment.end,
                      children: [
                        Image.asset('assets/images/icon_page_send_msg.png',width: 35.w,height: 35.h,),
                        SizedBox(width: 10.w,)
                      ],
                    ),
                    focusedBorder: InputBorder.none,
                    //suffixIconConstraints: BoxConstraints(maxWidth: 24.w,maxHeight: 24.h),
                    contentPadding: EdgeInsets.only(left: 10.w,right: 10.w,top: 15.h,bottom: 15.w)
                ),
              ),
            )
          ],
        ),
      ),
    );
  }
}
